---
title: Wavy Text
date: 2024-05-23
description: An animated text component that staggers text up
author: nyxb
published: true
---

<ComponentPreview name="wavy-text-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add wavy-text
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/wavy-text.tsx
```

<ComponentSource name="wavy-text" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop      | Type   | Description                                        | Default                                  |
| --------- | ------ | -------------------------------------------------- | ---------------------------------------- |
| className | string | The class name to be applied to the component      |                                          |
| duration  | number | Durations (seconds) for the animation              | 0.5                                      |
| delay     | number | Duration (seconds) for stagger between each letter | 0.02                                     |
| words     | string | The word to be animated                            |                                          |
| variant   | object | Custom animation variants for motion component     | ` hidden: { y: 10 },visible: { y: -10 }` |
